#app {
  .main-container {
    min-height: 100%;
    transition: margin-left 0.28s;
    margin-left: $sideBarWidth;
    position: relative;
  }
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform 0.28s;
      width: $sideBarWidth !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$sideBarWidth, 0, 0);
      }
    }
  }
  .hideSidebar {
    .sidebar-container {
      width: 60px !important;
    }
    .el-submenu__title i {
      display: none;
    }
  }
  .sidebar-container {
    // transition: width 0.28s;
    // width: $sideBarWidth !important;
    // background-color: $menuBg;
    // height: 100%;
    // font-size: 0;
    // z-index: 1001;
    // overflow: hidden;
    // box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 0 3px 0 rgba(0, 0, 0, 0.04);

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out,
        0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 16px;
      font-size: 14px;
    }

    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;

      .el-menu-item,
      .el-submenu__title {
        height: 46px;
        line-height: 46px;
      }
    }

    // menu hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      &:hover {
        background-color: $menuHover !important;
      }
    }

    .is-active > .el-submenu__title {
      color: $subMenuActiveText !important;
    }

    & .nest-menu .el-submenu > .el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $sideBarWidth !important;
      background-color: $subMenuBg !important;

      &:hover {
        background-color: $subMenuHover !important;
      }
    }
  }
  .sidebar-container {
    transition: width 0.28s;
    width: $sideBarWidth !important;
    background-color: $menuBg;
    height: 100%;
    font-size: 0;
    z-index: 1001;
    overflow: hidden;
    // box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 0 3px 0 rgba(0, 0, 0, 0.04);
    // reset element-ui css
  }
  .el-submenu.is-opened {
    .el-submenu__title,
    .el-menu--inline,
    .nest-menu,
    .el-menu-item {
      background-color: #ffffff0d !important;
    }
  }
  .el-submenu.is-opened {
    .el-submenu__title,
    .el-menu--inline {
      .router-link-exact-active.router-link-active {
        .el-menu-item {
          background-color: #fff !important;
        }
      }
    }
  }
  .el-submenu__title {
    span {
      padding-left: 12px;
    }
  }
}
